package Excel.Model;

/**
 * @author lianghao
 * @create 2019-12-19 13:38
 */
public class SheetModel {
    private Object[][] dataArray;
    private String sheetName;
    private String sheetTitle;
    private ColumnModel[] columnModels;
    private String remark;
    private boolean freezeFirstSign;
    private boolean totalSign;
    private Object[] totalArray;

    private final byte titleX;
    private final byte titleY;

    public SheetModel() {
        this.titleX = (byte) 1;
        this.titleY = (byte) 0;
        this.freezeFirstSign = true;
    }

    public void setDataArray(Object[][] dataArray) {
        this.dataArray = dataArray;
    }

    public String getSheetName() {
        return sheetName;
    }

    public void setSheetName(String sheetName) {
        this.sheetName = sheetName;
    }

    public String getSheetTitle() {
        return sheetTitle;
    }

    public void setSheetTitle(String sheetTitle) {
        this.sheetTitle = sheetTitle;
    }

    public ColumnModel[] getColumnModels() {
        return columnModels;
    }

    public void setColumnModels(ColumnModel[] columnModels) {
        this.columnModels = columnModels;
    }

    public byte getTitleX() {
        return titleX;
    }

    public byte getTitleY() {
        return titleY;
    }

    public String getRemark() {
        return String.format("说明：%s",remark);
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Object[][] getDataArray() {
        return dataArray;
    }

    public boolean isFreezeFirstSign() {
        return freezeFirstSign;
    }

    public void setFreezeFirstSign(boolean freezeFirstSign) {
        this.freezeFirstSign = freezeFirstSign;
    }

    public boolean isTotalSign() {
        return totalSign;
    }

    public void setTotalSign(boolean totalSign) {
        this.totalSign = totalSign;
    }

    public Object[] getTotalArray() {
        return totalArray;
    }

    public void setTotalArray(Object[] totalArray) {
        this.totalArray = totalArray;
    }
}
